Object pooling utility. Class
Methods
destroy
(
OverlapKeeperRecordPool
-
record
Parameters:
-
record
OverlapKeeperRecord
Returns:
OverlapKeeperRecordPool:
get
()
Object
Get an object from the pool or create a new instance.
Returns:
Object:
release
(
Pool
-
object
Clean up and put the object back into the pool for later use.
Parameters:
-
object
Object
Returns:
Pool:
Self for chaining
resize
(
Pool
-
size
Parameters:
-
size
Number
Returns:
Pool:
Self, for chaining